<%@ page language="java" contentType="text/html; charset=utf8"
	pageEncoding="utf8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>FUEL JSP</title>
    </head>
    <body>
        <h1>FUEL LIST</h1>
        <table border="2" width="2" cellspacing="2" cellpadding="2" >
            <thead>
                <tr>
                    <th>Код</th>
                    <th>Топливо</th>
                </tr>
            </thead>
            <tbody>
                <c:if test="${!empty fuelList}">                
                    <c:forEach items="${fuelList}" var="fuel">
                            <tr>
                                    <td>${fuel.id}</td>
                                    <td>${fuel.name}</td>
                            </tr>
                    </c:forEach>                
                </c:if>
            </tbody>
        </table>
    </body>
</html>
